package booroo.basic;

import java.util.Scanner;

public class J06_SungJukV2c {

	public static void main(String[] args) {
		Scanner sc = null;
		String name;
		int kor, eng, mat;
		int isLoop = 1;
		final String title = "성적 처리 프로그램";
		final String hdrline = "-------------";
		final String guide1 = "이름은?";
		final String guide2 = "국어는?";
		final String guide3 = "영어는?";
		final String guide4 = "수학은?";
		final String guide5 = "계속 입력할래요? (예:1, 아니오=0)";
		
		sc = new Scanner(System.in);
		System.out.println(title);
		System.out.println(hdrline);
		
		do {
			System.out.println(guide1);
			name = sc.next();
			System.out.println(guide2);
			kor = sc.nextInt();
			System.out.println(guide3);
			eng = sc.nextInt();
			System.out.println(guide4);
			mat = sc.nextInt();
			System.out.println(guide5);
			isLoop = sc.nextInt();
			}
			while (isLoop == 1);
		sc.close();

	}

}
